package com.market.controller.wx;

import com.market.bean.common.BaseRespVo;
import com.market.bean.vo.wx.SearchIndexVo;
import com.market.service.wx.WxSearchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 小程序搜索模块
 * @author wh194@foxmail.com
 * @since 2023/01/02 21:22
 */
@RestController
@RequestMapping("wx/search")
public class WxSearchController {
    @Autowired
    WxSearchService wxSearchService;

    @GetMapping("index")
    public BaseRespVo index() {
        SearchIndexVo data = wxSearchService.index();
        return BaseRespVo.ok(data);
    }
}
